#!/bin/bash
f0="/home/dev/sql/source.sql"
f1="/home/dev/sql/sink.sql"
f2="/home/dev/sql/job.sql"

sql_file="$f0,$f1,$f2"

AD_JAR=/home/dev/flink-sqlsubmit-1.0-SNAPSHOT.jar

/home/flink/bin/flink run -p 1 -c local.sqlsubmit.SqlSubmit $AD_JAR -f $sql_file

# docker exec -it adflink /bin/bash -c '/home/dev/sql-submit.sh'

# docker exec -it adflink /bin/bash -c '/home/flink/bin/flink list'